//
//  AppDelegate.m
//  Ecrm
//
//  Created by ZHC on 16/3/15.
//  Copyright © 2016年 ZHC. All rights reserved.
//

#import "AppDelegate.h"
#import "IndexViewController.h"
#import "NavigationController.h"

@interface AppDelegate ()

@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    
    [self loadWindow];
    
    
    
    return YES;
}


/**
 *  初始化window
 */
-(void)loadWindow{
    self.window = [[UIWindow alloc] init];
    self.window.frame = [UIScreen mainScreen].bounds;
    self.window.rootViewController = [self loadFristController];
    [self.window makeKeyAndVisible];
}

/**
 *  加载第一个控制器
 */
-(UIViewController *)loadFristController{
    IndexViewController *ivc = [[IndexViewController alloc]init];
    NavigationController *nav = [[NavigationController alloc]initWithRootViewController:ivc];
    
    return nav;
    
}


@end
